package com.cskt.petproject178.controller;

import com.cskt.petproject178.pojo.entity.Brand;
import com.cskt.petproject178.pojo.vo.ResultVO;
import com.cskt.petproject178.service.BrandService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 品牌控制器
 *
 * @author 27013
 **/

@RestController
@RequestMapping(value = "/pms/product/brand")
public class BrandController {
    @Resource
    private BrandService brandService;

    @GetMapping(value = "/list")
    public ResultVO<List<Brand>> brandList(){
        return ResultVO.OK(brandService.selectAll());
    }
}
